package dao;

import model.ExpressSender;

import java.util.List;

public interface ExpressSendersManagement {
    //增加
    Integer saveOne(ExpressSender sender, UsrTypeManager typeManager);

    Integer saveOne(long senderID, int companyID, UsrTypeManager typeManager);

    Integer updateOne(long senderID, int companyID);

    Integer deleteOne(long senderID, UsrTypeManager typeManager);

    boolean deleteByCompany(int companyID, UsrTypeManager typeManager);

    List<ExpressSender> query(ExpressSender sender, int pageSize, int page);

    List<ExpressSender> query(ExpressSender sender);

    List<ExpressSender> query(int pageSize, int page);

    List<ExpressSender> query();

    //查询全部
    List<ExpressSender> queryALL();

    List<ExpressSender> queryALL(int pageSize, int page);
}
